package com.hsgene.common.util.web.access.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * 令牌被刷新的异常.
 *
 * @author wangbing
 * @version 1.0, 2018/7/6
 */
public class FirstLoginException extends TokenException {

    private static final long serialVersionUID = -1665017481301671636L;

    // Token被刷新异常提示
    private final static ErrorCode errorCode = new ErrorCode() {
        @Override
        public int getCode() {
            return 10037;
        }

        @Override
        public String getMessage() {
            return "Error_Users_First_Login_Verify";
        }

        @Override
        public String getDescription() {
            return "首次登录必须重置密码";
        }
    };

    @Override
    public ErrorCode getErrorCode() {
        return errorCode;
    }

    public FirstLoginException() {
        super();
    }

    public FirstLoginException(String message) {
        super(message);
    }

    public FirstLoginException(Throwable cause) {
        super(cause);
    }

    public FirstLoginException(String message, Throwable cause) {
        super(message, cause);
    }

    public FirstLoginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}